/***************************************************************************
 *   Copyright (C) 2009 by pawel   *
 *   pawel@byszewski.pl   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef RECORDDESCRYPTOR_H
#define RECORDDESCRYPTOR_H
#include <fstream>
#define DESLENGTH 14
#define ELEMENTCOUNT 5
/**
	@author pawel <pawel@byszewski.pl>
*/
class RecordDescriptor
{
	private:
		char booked;
		int size;
		int ofset;
		char type[ELEMENTCOUNT];
	public:
		RecordDescriptor();
		void setSize ( int s );
		void setBooked ( char );
		void setOfset ( int );
		char getBooked();
		int getSize();
		int getOfset();
		void setType( unsigned int, char);
		//void toStream(fstream s);
		char * createBuf();
		void wypisz();
		void createFromBuf(char *buf);
		~RecordDescriptor();

};

#endif
